<?php

namespace Entities;

use Doctrine\ORM\Mapping as ORM;

/**
 * Entities\Fluxo
 *
 * @ORM\Table(name="fluxo")
 * @ORM\Entity
 */
class Fluxo
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var datetime $data
     *
     * @ORM\Column(name="data", type="datetime", nullable=false)
     */
    private $data;

    /**
     * @var Entities\Chamado
     *
     * @ORM\OneToOne(targetEntity="Entities\Chamado")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="chamado", referencedColumnName="id", unique=true)
     * })
     */
    private $chamado;

    /**
     * @var Entities\Usuario
     *
     * @ORM\OneToOne(targetEntity="Entities\Usuario")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="usuario_responsavel", referencedColumnName="id", unique=true)
     * })
     */
    private $usuarioResponsavel;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set data
     *
     * @param datetime $data
     * @return Fluxo
     */
    public function setData($data)
    {
        $this->data = $data;
        return $this;
    }

    /**
     * Get data
     *
     * @return datetime 
     */
    public function getData()
    {
        return $this->data;
    }

    /**
     * Set chamado
     *
     * @param Entities\Chamado $chamado
     * @return Fluxo
     */
    public function setChamado(\Entities\Chamado $chamado = null)
    {
        $this->chamado = $chamado;
        return $this;
    }

    /**
     * Get chamado
     *
     * @return Entities\Chamado 
     */
    public function getChamado()
    {
        return $this->chamado;
    }

    /**
     * Set usuarioResponsavel
     *
     * @param Entities\Usuario $usuarioResponsavel
     * @return Fluxo
     */
    public function setUsuarioResponsavel(\Entities\Usuario $usuarioResponsavel = null)
    {
        $this->usuarioResponsavel = $usuarioResponsavel;
        return $this;
    }

    /**
     * Get usuarioResponsavel
     *
     * @return Entities\Usuario 
     */
    public function getUsuarioResponsavel()
    {
        return $this->usuarioResponsavel;
    }
}